/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package api.user;

import Model.User.UserList;
import RssEasy.Core.HttpRequestHelper;
import RssEasy.Core.SignVerifyRequestHelper;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Administrator
 */
@WebServlet(name = "api_user_list", urlPatterns = {"/api/user/list"})
public class list extends SignVerifyRequestHelper {
    @Override
    protected HttpRequestHelper request(HttpServletRequest request, HttpServletResponse response) {
        super.request(request, response);

        try {
            UserList list = new UserList(pageContext);
            list.select().get_page_desc("myid");
            out.print(list.toKeyValue());
        } catch (Exception e) {
        }
        return this;
    }

}
